home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / AccColorT.h.z / AccColorT.h
C/C++ Source or Header  |  2002-10-15  |  2KB  |  72 lines

  1. /* $XConsortium: AccColorT.h /main/5 1995/07/15 20:47:59 drk $ */
  2. /*
  3.  * COPYRIGHT NOTICE
  4.  * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  * ALL RIGHTS RESERVED (MOTIF).  See the file named COPYRIGHT.MOTIF
  6.  * for the full copyright text.
  7.  * 
  8.  */
  9. /*
  10.  * HISTORY
  11.  */
  12.  
  13. #ifndef _XmAccessColorsT_H
  14. #define _XmAccessColorsT_H
  15.  
  16. #include <Xm/Xm.h>
  17. #include <X11/Xresource.h>
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. externalref XrmQuark XmQTaccessColors;
  24.  
  25. /* this one can be expanded in the future */
  26. typedef struct _XmAccessColorDataRec {
  27.     Mask  valueMask ;
  28.     Pixel foreground  ;
  29.     Pixel background  ;
  30.     Pixel highlight_color  ;
  31.     Pixel top_shadow_color  ;
  32.     Pixel bottom_shadow_color ;
  33.     Pixel select_color ;
  34. } XmAccessColorDataRec, *XmAccessColorData;
  35.  
  36. typedef void (*XmAccessColorsGetProc)(Widget widget, 
  37.                       XmAccessColorData color_data);
  38. typedef void (*XmAccessColorsSetProc)(Widget widget, 
  39.                       XmAccessColorData color_data);
  40.  
  41. /* Trait structures and typedefs, place typedefs first */
  42.  
  43. /* Version 0: initial release. */
  44.  
  45. typedef struct _XmAccessColorsTraitRec {
  46.   int            version;    /* 0 */
  47.   XmAccessColorsGetProc getColors;
  48.   XmAccessColorsGetProc setColors;
  49. } XmAccessColorsTraitRec, *XmAccessColorsTrait;
  50.  
  51. #define AccessColorInvalid         0L
  52. #define AccessForeground           (1L<<0)  
  53. #define AccessBackgroundPixel      (1L<<1)   
  54. #define AccessHighlightColor       (1L<<2)   
  55. #define AccessTopShadowColor       (1L<<3)   
  56. #define AccessBottomShadowColor    (1L<<4)   
  57. #define AccessSelectColor          (1L<<5)   
  58.  
  59. #ifdef __cplusplus
  60. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  61. #endif
  62.  
  63. /* to do:
  64.  
  65.  add it to PushB/G and ToggleB/G so that they can report their
  66.    select color
  67.  implement the setValues ?
  68.  
  69. */
  70.  
  71. #endif /* _XmAccessColorsT_H */
  72.